//
//  NoteGroup.h
//  Note
//
//  Created by niit on 16/3/16.
//  Copyright © 2016年 NIIT. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "NoteModel.h"

@interface NoteGroup : NSObject

@property (nonatomic,strong) NSMutableArray *noteList;

// 得到单例对象
+ (NoteGroup *)sharedNoteGroup;

// 增删改查
// 添加
- (void)addNoteWithTitle:(NSString *)title andContent:(NSString *)content;
// 编辑
- (void)modifyNote:(NoteModel *)n withTitle:(NSString *)title andContent:(NSString *)content;
// 移除
- (void)removeNoteByIndex:(NSUInteger)index;

- (NSMutableArray *)findAll;

// 保存数据
- (void)saveData;

@end
